<?php
echo $this->Form->create('ObjectCreator',array('class'=>'form','action'=>'addViews/'.$objeto));
?>

<fieldset>
    <table border="1">
        <thead>
            <tr>
                <th colspan="2"> TIPO DE VISTA</th>
            </tr>
        </thead>
        <tbody>


            <tr>
                <td>Tipo:</td>
                <td><?php echo $this->Form->input("ObjectCreator.tipo", array('id' => 'ObjectCreatorTipo', 'options' => array(' ' => ' ', 'index' => 'index', 'edit' => 'edit', 'add' => 'add'),'class' => 'required')); ?></td>
            </tr>
            <tr>
                <td>Nombre</td>
                <td><?php echo $this->Form->input("ObjectCreator.nombre", array('label' => '', 'class' => 'required','options'=>$funciones,'empty'=>'')); ?></td>
            </tr>

        </tbody>
    </table>
    <?php
    echo $this->Ajax->observeField('ObjectCreatorTipo', array(
        'url' => array('action' => 'select_view_type', $objeto),
        'frequency' => 0.2,
        'update' => 'campos',
        'indicator' => 'loading1'
            )
    );
    ?>
    <div id="campos">


    </div>
</fieldset>
<?php echo $this->Form->submit('Guardar',array('class'=>'submit')) ?>


<?php echo $this->Form->end() ?>



